# Contributor: Andrey L <innerspacepilot@gmx.com>
# Maintainer: Andrey L <innerspacepilot@gmx.com>
pkgname=kyotocabinet
pkgver=1.2.77
pkgrel=0
pkgdesc="Kyoto Cabinet is a library of routines for managing a database."
url="https://fallabs.com/kyotocabinet/"
arch="all !ppc64le !s390x !armhf !armv7"
license="GPL-3.0-or-later"
makedepends="zlib-dev lzo-dev xz-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://fallabs.com/kyotocabinet/pkg/kyotocabinet-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr --enable-lzo --enable-lzma
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="f38794c11faa3f4b64097a2e314307e1a6b75ddc495103647ebe52786a689336754496e7083697417ea90436e7fad681f16440975abec9ae917874aa25153e0f  kyotocabinet-1.2.77.tar.gz"
